import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/Index.vue'

Vue.use(Router)

const router = new Router({
    routes: [{
        path: '/Index',
        name: 'Index',
        component: Index
    },{
        path: '*',
        redirect: '/Index'
    }]
})


// router.beforeEach(function(to, from, next) {
//     console.log(to)
//     next();
// })

export default router
